﻿using System;
using System.Collections.Generic;
using System.Text;
using CharacterTrailLibrary.Persist.BLL.Model;

namespace CharacterTrailLibrary.Model
{
    public class BomHeaderModelIncludeParent : TBomHeaderModel
    {
        public string ID
        {
            get
            {
                if(parant != null)
                {
                    return parant.ParentItemNumber +"//"+ this.ChildItemNumber ; 
                }
                return this.ChildItemNumber;
            }
        }

        private TBomHeaderModel parant;
        public TBomHeaderModel Parant 
        {
            get { return parant; }
            set { this.parant = value; }
        }
        public string ParentID
        {
            get
            {
                if(Parant == null)
                    return String.Empty;
           
                return this.ParentItemNumber;
             
            }
        }
    }
}
